﻿<%@ page language="java" contentType="text/html; charset=utf-8"
         pageEncoding="utf-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>易买网 - 首页</title>
    <link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/static/css/style.css"/>
    <script type="text/javascript" src="${pageContext.request.contextPath}/static/scripts/jquery.min.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/static/scripts/My97DatePicker/WdatePicker.js"></script>
    <%--<script type="text/javascript" src="scripts/function.js"></script>--%>
</head>
<%
    String ctx = request.getContextPath();
%>
<body>
<jsp:include page="top.jsp"/>
<div id="main" class="wrap">
    <jsp:include page="leftbar.jsp"/>
    <div id="product" class="main">
        <h1></h1>
        <div class="introduce">
            <h2><strong>商品详情</strong></h2>
            <div class="text">
            </div>
        </div>
        <div class="infos">
            <div class="thumb"><img src="${pageContext.request.contextPath}/static/files/${nowproduct.epFileName}"/></div>
            <div class="buy">
                <p>商城价：<span class="price"><fmt:formatNumber value="${nowproduct.epPrice}" type="NUMBER"
                                                             minFractionDigits="2"/> </span></p>
                <c:if test="${nowproduct.epStock>0}"><p>库 存：${nowproduct.epStock}</p></c:if>
                <c:if test="${nowproduct.epStock==0}"><p>库 存：无货</p></c:if>
                <div class="button"><input type="button" name="button" value="" onclick="goBuy2(${entityId})"/><a
                        href="<%=ctx%>/product/addProduct?entityId=${nowproduct.epId}">放入购物车</a></div>
            </div>
            <div class="clear"></div>
        </div>

    </div>
    <div class="clear"></div>
</div>
<div id="footer">
    Copyright &copy; 2015 XXX All Rights Reserved. 京ICP证1000001号
</div>
</body>
</html>
